#include "events.h"
#include "vismgr/vievents.h"

namespace viswidgets
{

event::event(view_event_type_e t, void* data)
: m_type(t), m_data(data)
{
}

event::~event()
{
}

resize_event::resize_event(void* d)
: event(view_ev_resize_event, d)
{
}

int resize_event::original_width(void)
{
	view_ev_resize_data* data = (view_ev_resize_data*)m_data;
	return data->orig_width;
}

int resize_event::original_height(void)
{
	view_ev_resize_data* data = (view_ev_resize_data*)m_data;
	return data->orig_height;
}

}; // viswidgets
/* EOF */